﻿/*
 * Created by SharpDevelop.
 * User: hugo
 * Date: 2012/8/6
 * Time: 下午 10:38
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;

namespace MyPetShop.Domain
{
	/// <summary>
	/// Description of Order.
	/// </summary>
	public class Order
	{
		private List<OrderDetail> m_OrderDetail;
		public decimal TotalPrice {get;set;}
		
		protected List<OrderDetail> orderDetail 
		{
			set{m_OrderDetail = value;}
		}
		
		public IEnumerable<OrderDetail> OrderDetail 
		{
			get{return m_OrderDetail.ToArray();}
		}
		
		public Order()
		{
			m_OrderDetail = new List<OrderDetail>();
		}
		
		public void AddOrderDetail(OrderDetail detail)
		{
			m_OrderDetail.Add(detail);
		}
		
		public static Order MakeNewOrder(Shopping shopping)
		{
			throw new NotImplementedException();
		}
	}
}
